Skip to content

Conversation

camuthig
Copy link

@camuthig camuthig commented May 1, 2025

This makes it possible to have a one-to-one and many-to-one Relationship with both multiple set to False and execute negated queries on it. This sort of relationship does not need to create a WHERE NOT EXIST subquery, and by setting the m2m variable the ORM will generate the correct query for us.

This does not solve the larger issue for a one-to-many or many-to-many relationship and negated queries.

@camuthig camuthig force-pushed the support-single-forward-negation-filter branch from 2930936 to ef61476 Compare May 1, 2025 21:31
@camuthig camuthig changed the title Support negated filters on one-to-one Relationships Support negated filters on one-to-one and many-to-one Relationships May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant